feat(rivetkit): add current actor metrics#5020
Conversation
c6e4baf to
93e7a3b
Compare
|
Review: feat(rivetkit): add current actor metrics
OverviewThis PR graduates several no-op actor metric methods into real implementations, adding gauges and counters for queue depth, active connections, inbox depths, user task counts, HTTP requests, keep-awake counts, shutdown drain counts, and SQLite worker state. The core mechanism is an aggregated gauge pattern: each The test in Issues1.
|
93e7a3b to
6d50b18
Compare
PR 5020 Review: feat(rivetkit): add current actor metrics. The core delta-based aggregation pattern in metrics.rs is well-designed. Key items: (1) sqlite_workers_active naming vs set_worker_active(bool) bool maps to 1 or 0 so the plural name is misleading; (2) keep_awake_active uses WORK_LABELS with kind dimension but shutdown_tasks_active uses ACTOR_LABELS without it creating PromQL inconsistency; (3) test coverage for keep_awake and shutdown_tasks gauges is missing from the new test; (4) begin_user_task / end_user_task can go negative if called out of order since entry().or_default() starts at 0; (5) registryDiagnostics removal in kitchen-sink appears unrelated to the metrics work. Overall the aggregation approach and Drop cleanup are solid. |
3a9c1be to
72886b4
Compare
6d50b18 to
5b2112e
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: